Source for file config.inc.php
Documentation is available at config.inc.php
require_once 'LiveUser/Admin.php';
// Please configure the following file according to your environment
$GLOBALS['_LIVEUSER_DEBUG'] = true;
$db_name = 'liveuser_admin_test_example1';
$dsn = " mysql://$db_user:$db_pass@$db_host/$db_name";
'debug_handler' => 'echoQuery',
if (!isset ($_GET['perm'])) {
} elseif (isset ($backends[$_GET['perm']])) {
exit ('Perm Backend not found.');
require_once $perm. '.php';
Var_Dump ::display ($scope. ': '. $message);
$db = $dummy->connect ($dsn, $backends[$perm]['options']);
if (PEAR ::isError ($db)) {
echo $db->getMessage () . ' ' . $db->getUserInfo ();
$db->setFetchMode ($perm. '_FETCHMODE_ASSOC');
'authContainers' => array (
'allowDuplicateHandles' => false ,
'authTable' => 'liveuser_users',
'authTableCols' => array (
'auth_user_id' => array ('type' => 'text', 'name' => 'auth_user_id'),
'handle' => array ('type' => 'text', 'name' => 'handle'),
'passwd' => array ('type' => 'text', 'name' => 'passwd'),
'is_active' => array ('type' => 'boolean', 'name' => 'is_active'),
'lastlogin' => array ('type' => 'timestamp', 'name' => 'lastlogin'),
'owner_user_id' => array ('type' => 'integer', 'name' => 'owner_user_id'),
'owner_group_id' => array ('type' => 'integer', 'name' => 'owner_group_id')
'name' => array ('type' => 'text', 'name' => 'name'),
'email' => array ('type' => 'text', 'name' => 'email'),
'permContainer' => array (
$logconf = array ('mode' => 0666 , 'timeFormat' => '%X %x');
$logger = &Log ::factory ('file', 'liveuser_test.log', 'ident', $logconf);
$admin->addErrorLog ($logger);
$admin->setAdminContainers ();
Documentation generated on Mon, 11 Mar 2019 14:29:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|